<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">

    <title>{% block title %}{% endblock %}</title>

    <link rel="shortcut icon" href="{{ url_for('static', filename='icons/favicon_16.ico') }}" type="image/x-icon">
    <link rel="icon" href="{{ url_for('static', filename='icons/favicon.ico') }}" type="image/x-icon">
    <link type="text/css" href="{{ url_for('static', filename='include/bootstrap.css') }}" rel="stylesheet">
    <link type="text/css" href="{{ url_for('static', filename='css/style.css') }}" rel="stylesheet">
    {%- block head %}{% endblock %}
    <!--[if lt IE 9]>
    <scripts type="text/scripts" src="{{ url_for('static', filename='include/html5shiv.js') }}"></scripts>
    <scripts type="text/scripts" src="{{ url_for('static', filename='include/respond.js') }}"></scripts>
    <![endif]-->
</head>
<body>
    <div id="header">
        {% set navigation_bar = [
        ('dam', 'DAM: Dashboard')
        ] -%}
        {% set active_page = active_page|default('index') -%}
        <nav class="navbar navbar-expand-md navbar-dark fixed-top bg-dark">
            <a class="navbar-brand" href="#">CallHub</a>
            <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarCollapse" aria-controls="navbarCollapse" aria-expanded="false" aria-label="Toggle navigation">
                <span class="navbar-toggler-icon"></span>
            </button>
            <div class="collapse navbar-collapse" id="navbarCollapse">
                <ul class="navbar-nav mr-auto">
                    {% for id, caption in navigation_bar %}
                    <li class="nav-item{% if caption == active_page %} active{% endif %}">
                        <a class="nav-link" href="#">{{ caption|e }}</a>
                    </li>
                    {% endfor %}

                </ul>
                <form class="form-inline mt-2 mt-md-0">
                    <input class="form-control mr-sm-2" type="text" placeholder="Search" aria-label="Search">
                    <button class="btn btn-outline-success my-2 my-sm-0" type="submit">Search</button>
                </form>
            </div>
        </nav>
    </div>
    <div id="content">
        <div id="div-effect">
            <canvas id="canvas-effect">
            </canvas>
        </div>
        {%- block content %}{%- endblock %}
    </div>
    <div id="footer">
        {%- block footer %}
        　　&copy; Copyright 2017 by Yunzhe.
        {%- endblock %}
    </div>

    <script type="text/javascript" src="{{ url_for('static', filename='include/jquery.js') }}"></script>
    <script type="text/javascript" src="{{ url_for('static', filename='include/popper.js') }}"></script>
    <script type="text/javascript" src="{{ url_for('static', filename='include/bootstrap.js') }}"></script>
    <script type="text/javascript" src="{{ url_for('static', filename='scripts/effect.js') }}"></script>
    {%- block scripts %}{%- endblock %}
</body>
</html>